﻿<Window x:Class="Save_Editor.Windows.winStatsData"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:c="clr-namespace:Save_Editor.Classes"
        xmlns:m="clr-namespace:Save_Editor.Controls"
        Title="Stats" Height="250" Width="192" ResizeMode="CanMinimize" ShowInTaskbar="False" Topmost="True" WindowStartupLocation="CenterOwner">
    <Window.Resources>
        <c:StringToInt x:Key="sToi" />
    </Window.Resources>
    <Grid DataContext="{Binding CurrentStats}">
        <Grid.RowDefinitions>
            <RowDefinition Height="182*" />
            <RowDefinition Height="32*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="75" />
            <ColumnDefinition Width="203*" />
        </Grid.ColumnDefinitions>
        <Label Content="Smarts" Height="28" HorizontalAlignment="Right" Margin="0,10,6,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="Power" Height="28" HorizontalAlignment="Right" Margin="0,44,8,0" Name="label2" VerticalAlignment="Top" />
        <Label Content="Speed" Height="28" Margin="0,78,6,0" Name="label3" VerticalAlignment="Top" HorizontalAlignment="Right" />
        <Label Content="Finesse" Height="28" HorizontalAlignment="Right" Margin="0,112,6,0" Name="label4" VerticalAlignment="Top" />
        <Label Content="Toughness" Height="28" HorizontalAlignment="Right" Margin="0,146,6,0" Name="label5" VerticalAlignment="Top" />
        <TextBox Text="{Binding Smarts, Converter={StaticResource sToi}}" Height="28" Margin="0,12,6,0" Name="label6" VerticalAlignment="Top" Grid.Column="1" MaxLength="10" />
        <TextBox Text="{Binding Power, Converter={StaticResource sToi}}" Height="28" Margin="0,44,6,0" Name="label7" VerticalAlignment="Top" Grid.Column="1" MaxLength="10" />
        <TextBox Text="{Binding Speed, Converter={StaticResource sToi}}" Height="28" Margin="0,112,6,0" Name="label8" VerticalAlignment="Top" Grid.Column="1" MaxLength="10" />
        <TextBox Text="{Binding Finesse, Converter={StaticResource sToi}}" Height="28" Margin="0,78,6,0" Name="label9" VerticalAlignment="Top" Grid.Column="1" MaxLength="10" />
        <TextBox Text="{Binding Toughness, Converter={StaticResource sToi}}" Height="28" Margin="0,146,6,0" Name="label10" VerticalAlignment="Top" Grid.Column="1" MaxLength="10" />
        <Button Content="_OK" Grid.ColumnSpan="2" Height="23" HorizontalAlignment="Right" Margin="0,0,6,6" Name="button1" VerticalAlignment="Bottom" Width="75" Grid.Row="1" Click="button1_Click" />
        <Button Content="_Max" Height="23" HorizontalAlignment="Right" Margin="0,0,87,6" Name="button2" VerticalAlignment="Bottom" Width="75" Grid.Row="1" Grid.ColumnSpan="2" Click="button2_Click" />
    </Grid>
</Window>
